import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:yp/config/style.dart';
import 'package:yp/widgets/navigation_bar.dart';

class jietijia extends StatelessWidget {
  const jietijia({Key key}) : super(key: key);
  final Color white = const Color(0xffffffff);

  @override
  Widget build(BuildContext context) {
    List jtj = Get.arguments['jietijia'];
    return Scaffold(
      appBar: YPNavigationBar(
        '拼团付款规则',
        backBtnColor: white,
        backgroundColor: EsColors.Primary,
        titleColor: white,
      ),
      body:Container(
        margin: const EdgeInsets.only(left: 12,right: 12,top: 12),
        padding: const EdgeInsets.only(left: 12,right: 12),
        child: Column(
          children: [
            Container(
              margin: EdgeInsets.only(bottom: 20),
              child: Text('超级团阶梯价及支付说明'),
            ),
            Container(
              child: Column(
                mainAxisSize:MainAxisSize.max,
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Row(
                    mainAxisSize:MainAxisSize.max,
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Text('参团${jtj[0]["people_count"]}人'),
                      Text('成交价为${jtj[0]["price"]}元'),
                    ],
                  ),
                  Container(
                    height: 10,
                  ),
                  Row(
                    mainAxisSize:MainAxisSize.max,
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Text('参团大于等于${jtj[1]["people_count"]}人'),
                      Text('成交价为${jtj[1]["price"]}元'),
                    ],
                  ),
                ],
              ),
            ),
            Container(
              height: 30,
            ),
            Text(
              '支付方式预付款支持微信、购物卡、积分不支持使用优惠券差额支持微信、购物卡。积分和购物卡遵循互斥原则，一笔订单仅支持使用一次购物卡。超级团预付款为最优价格，若成团时间结束未达到最高阶梯，人数要求，则需按照已参团人数补付差额。超级团每人只能参加一次，一次只能下单一件。',
              softWrap: true,
            )
            // Container(
            //   margin: const EdgeInsets.only(left:16.0,right: 100.0),
            //   child: const Flexible(
            //     child: SelectableText.rich(
            //   TextSpan(
            //     children: [
            //       TextSpan(
            //         text:""
            //       ),
            //     ],
            //   ),
            // )))
          ],
        ),
      ),
    );
  }
}